package com.translation;

import javax.sql.DataSource;

import org.apache.log4j.Logger;

import com.mchange.v2.c3p0.ComboPooledDataSource;

public class C3P0DataSourceFactory {

	private static final Logger log = Logger
			.getLogger(C3P0DataSourceFactory.class);

	public static DataSource getDataSource() {
		try {
			ComboPooledDataSource cpds = new ComboPooledDataSource();
			return cpds;
		} catch (Exception e) {
			log.error("", e);
		}
		return null;
	}

}
